public class Main {
   static class Test{
        Test t;
    }
    public static void main(String[] args) {
        /*Main m = new Main();
        m = null;*/
        Test a = new Test();
        Test b = new Test();
        a.t = b;
        b.t = a;
        System.out.println(a);
        System.out.println(b);
    }
}
